@extends('default.layouts.companyPublic')

@section('title', '企业账户中心')
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/company/list.css')}}">
@endsection

@section('rightcon')
    <div class="right">
        <div class="jright">
            <div class="content">
                <div class="jobtitle">
                    <div class="tithead">
                        <ul>
                            <li><a href="{{ route('myOrder.index') }}">我的套餐</a></li>
                            <li><a href="{{ route('myOrder.list') }}">我的定单</a></li>
                            <li class="active"><a href="{{ url('company/member_records') }}">会员记录</a></li>
                            @if(!empty(auth()->guard('company')->user()->stop_number))
                                <li><a href="{{ url('company/start_stop') }}">会员启停</a></li>
                            @endif
                        </ul>
                    </div>
                </div>
                {{--\会员信息--}}
                <div class="vipinfo">
                    <dl>
                        <dt>
                            <i></i>
                        </dt>
                        <dd><span>VIP</span><span>{{$vip['day']}}天</span></dd>
                    </dl>
                    <dl class="c2">
                        <dt>
                            <i></i>
                        </dt>
                        <dd><span>职位数</span><span>{{$vip['post_number']}}个</span></dd>
                    </dl>
                    <dl class="c3">
                        <dt>
                            <i></i>
                        </dt>
                        <dd><span>简历数</span><span>{{$vip['resume_number']}}份</span></dd>
                    </dl>
                    <dl class="c4 end">
                        <dt>
                            <i></i>
                        </dt>
                        <dd><span>积分</span><span>{{$vip['integral']}}个</span></dd>
                    </dl>
                </div>
                {{--显示列表--}}
                <div class="pinfo">
                    <form name="thisForm" action="{{url('company/jobadmin')}}" method="post">
                        {!! csrf_field() !!}
                        <div class="listmenu">
                            <ul class="one">
                                <li class="p1"></li>
                                <li class="p200">服务时间</li>
                                <li class="p3">会员类型</li>
                                <li class="p100">职位数</li>
                                <li class="p100">简历数</li>
                                <li class="p100">积分</li>
                                <li class="p3">购买时间</li>
                            </ul>
                            <div class="information"><span>共有<em>{{$list->total()}}</em>份开通记录！</span></div>
                            {{--循环--}}
                            @if($list->count() > 0 )
                                @foreach($list as $v)
                                    <ul id="list{{$v->id}}">
                                        <li class="p1">
                                            <input name="selected_id[]" class="checkboxs" value="{{$v->id}}"
                                                   type="checkbox"/>
                                        </li>
                                        <li class="p200">{{substr($v->start_time,0,10)}}
                                            ~{{substr($v->end_time,0,10)}}</li>
                                        <li class="p3">{{$v->vipname}}</li>
                                        <li class="p100">{{$v->vip_post_number}}</li>
                                        <li class="p100">{{$v->vip_resume_number}}</li>
                                        <li class="p100">{{$v->vip_integral}}</li>
                                        <li class="p3">{{timeTranx($v->created_at)}}</li>
                                    </ul>
                                @endforeach
                            @else
                                <div class="nullcon">抱歉，您还没有开通会员，<a href="{{ route("myOrder.index") }}">前去开通会员！</a>
                                </div>
                            @endif
                            <ul class="one last">
                                <li class="p1" style="width:80px;">
                                    <input name="selectall" id="selectall" class="checkboxs" value="1" type="checkbox"
                                           onclick="CheckAll(this)"/>
                                    <label for="selectall">全选</label>
                                </li>
                                <li class="p800">
                                </li>
                            </ul>
                        </div>
                    </form>
                </div>
                {{--分页--}}
                <div class="page_list">
                    {!! $list->links() !!}
                </div>
            </div>
        </div>
    </div>

@endsection
@section('footerjs')
    @parent
    <script type="text/javascript" src="{{asset('/default/js/company/list.js')}}"></script>
    <script type="text/javascript">
        $("#leftnav_order").addClass("active");
    </script>
@endsection
